#include<iostream>
#include "server.hpp"
int main()
{
    Buffer buffer;
    int n=1000;
    while(n--)
    {
        buffer.WriteStringAndPush("hello");
    }
     buffer.WriteStringAndPush("\n");
   // buffer.WriteStringAndPush("hello\n");
     std::string line = buffer.GetLine();
     std::cout<<line<<std::endl;


    // Buffer buf2;
    // buf2.WriteBufferAndPush(buffer);
    // std::string line2 = buf2.GetLineAndPop();
    // std::cout<<line2<<std::endl;
    return 0;
}